import 'package:color_dart/RgbaColor.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:im_flutter_sdk_example/jsonserialize/need/data.dart';

class Introduce extends StatelessWidget {
  final NeedData item;
  const Introduce({Key key, this.item}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      padding: EdgeInsets.only(top: 14, bottom: 23, left: 10, right: 10),
      child: Column(
        children: [
          Row(children: [
            SizedBox(
              width: 12,
              height: 12,
              child: Image.asset(
                'lib/assets/images/label/label.png',
                fit: BoxFit.cover,
              ),
            ),
            Padding(
              padding: EdgeInsets.only(left: 4),
              child: Text(
                '${item.keyWord}',
                style: TextStyle(color: rgba(25, 109, 236, 1), fontSize: 15),
              ),
            )
          ]),
          Container(
            padding: EdgeInsets.only(bottom: 18),
            child: Html(data: item.note),
          )
        ],
      ),
    );
  }
}
